/* Import base styles from contact and support pages */

.local-delivery-header {
    background-color:#2980B9;
    display:flex;
    min-height:100px;
    width:100%;
    justify-content: center;
    align-items: center;
    background-image:none;
    background-position: left center, right center;
    background-repeat: no-repeat;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.page-local-delivery h2 {
    font-size: 20px;
    color: #2A4B65
}

@media (min-width: 875px) {
    .local-delivery-header {
        background-image: url(https://lh3.googleusercontent.com/Xa1M7mglFU4eBbvP7QAeDv8Oh1cq48scuSowEr8XynrA7oWOYNAVdw-8kZE3_rzHUAflPh23aNfcGoS40htFXWFLh0Y=s180), url(https://lh3.googleusercontent.com/Xa1M7mglFU4eBbvP7QAeDv8Oh1cq48scuSowEr8XynrA7oWOYNAVdw-8kZE3_rzHUAflPh23aNfcGoS40htFXWFLh0Y=fh-s180);
    }
}

.page-subheader {
    margin-bottom: 20px;
    background-color: #F7F9F8;
    text-align: center;
    padding: 10px 10px
}

.local-delivery-header .local-delivery-title {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.local-delivery-title {
    font-size:22px;
    font-family:'Montserrat';
    text-align: center;
    color:#344A5F;
}

@media (min-width: 1000px) {
    .local-delivery-title {
        font-size:30px;
    }
}

.subheader {
    background-color:#F7F9F9;
    border-bottom:1px solid #eaeaea;
}

.subheader .local-delivery-title {
    font-size:16px;
}

@media (min-width: 768px) {
    .subheader .local-delivery-title {
        font-size:18px;
    }
}


/* Grid Layout for Delivery Zones */
.delivery-grid-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 20px;
}

.delivery-content {
	min-width: 0; /* Prevent grid blowout */
}

.delivery-map-section {
	position: sticky;
	top: 20px;
	height: fit-content;
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
}

.map-header {
}

.page-local-delivery h3 {
	font-family: 'Montserrat', sans-serif;
	color: #2A4B65;
	font-size: 1.75rem;
	margin: 0 0 15px 0;
	font-weight: 600;
}
    
.zipcode-map-result {
    font-size: 16px;
    font-weight: bold;
}

.zipcode-map-status {
    font-weight: bold; font-size: 14px; margin-top: 8px; display: block;
}

.map-legend {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #F7F9F8;
	padding: 15px;
	border-radius: 8px;
	border: 1px solid #EBEEF2;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
}

.legend-color {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: 2px solid;
}

.legend-color.active {
	background-color: rgba(40, 167, 69, 0.35);
	border-color: #1e7e34;
}

.legend-color.coming-soon {
	background-color: rgba(255, 193, 7, 0.2);
	border-color: #e0a800;
}

#delivery-map-canvas {
	width: 100%;
	height: 500px;
	border-radius: 8px;
	border: 2px solid #EBEEF2;
	transition: all 0.3s ease;
}

#delivery-map-canvas:hover {
}

/* Zip code input enhanced feedback */
.zip-code-checker input:focus {
	border-color: #297FB9;
	outline: none;
}

/* Enhanced focus state for page load */
.zip-code-checker input.focused-on-load {
	border-color: #297FB9;
}

/* Additional highlighting for better visibility */
.zip-code-checker input {
	transition: all 0.3s ease;
}

.zip-code-checker input::placeholder {
	transition: opacity 0.3s ease;
}

.zip-code-checker input:focus::placeholder {
	opacity: 0.7;
}

/* Map Reset Button - Enhanced CSS to replace inline styles */
.map-reset-button {
	/* Base styles */
	background: #1F425D;
	color: white;
	border: none;
	padding: 10px 15px;
	border-radius: 6px;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
	margin: 10px;
	z-index: 1000;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	
	/* Initially hidden */
	opacity: 0;
	visibility: hidden;
	transform: scale(0.8);
}

.map-reset-button.visible {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.map-reset-button.hidden {
	opacity: 0;
	visibility: hidden;
	transform: scale(0.8);
}

.map-reset-button:hover {
	background: #297FB9 !important;
	transform: scale(1) translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.map-reset-button:active {
	transform: translateY(1px) !important;
	box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

.map-reset-button.success {
	background: #28a745 !important;
}

/* Keyboard shortcut hint - only shown when map has been modified */
.zip-code-checker.has-results::after {
	content: "Press ESC to reset map";
	display: block;
	font-size: 11px;
	color: #999;
	margin-top: 8px;
	text-align: center;
	font-style: italic;
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Mobile responsive adjustments */
@media (max-width: 968px) {
	.delivery-grid-container {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 20px 10px;
	}
	
	.delivery-map-section {
		position: static;
		order: -1; /* Show map first on mobile */
	}
	
	#delivery-map-canvas {
		height: 400px;
	}
	
	/* Adjust reset button for mobile */
	.map-reset-button {
		font-size: 11px !important;
		padding: 8px 12px !important;
	}
	
	/* Mobile-friendly focus animation */
	@keyframes focusPulse {
		0% {
			box-shadow: 0 0 0 2px rgba(41, 127, 185, 0.2);
			transform: scale(1);
		}
		50% {
			box-shadow: 0 0 0 4px rgba(41, 127, 185, 0.1);
			transform: scale(1.01);
		}
		100% {
			box-shadow: 0 0 0 2px rgba(41, 127, 185, 0.2);
			transform: scale(1);
		}
	}
	
	.map-legend {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.delivery-grid-container {
		padding: 15px;
	}
	
	#delivery-map-canvas {
		height: 350px;
	}
	
	.map-legend {
		flex-direction: column;
		gap: 8px;
	}
}

/* Enhanced Contact Header with Images */
s

.contact-local-delivery-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	position: relative;
	z-index: 1;
}

.contact-local-delivery-images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 20px;
	justify-items: center;
}

.contact-local-delivery-images picture {
	opacity: 0.9;
	transition: all 0.3s ease;
	transform: translateY(10px);
	animation: fadeInUp 0.8s ease forwards;
}

.contact-local-delivery-images picture:nth-child(1) { animation-delay: 0.2s; }
.contact-local-delivery-images picture:nth-child(2) { animation-delay: 0.4s; }
.contact-local-delivery-images picture:nth-child(3) { animation-delay: 0.6s; }

.contact-local-delivery-images picture:hover {
	opacity: 1;
	transform: translateY(-5px) scale(1.05);
}

.contact-local-delivery-images img {
	width: 100%;
	max-width: 160px;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.local-delivery-title-section {
	text-align: left;
}

.local-delivery-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 3rem;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
    }

.contact-subtitle {
	font-family: 'Roboto', sans-serif;
	font-size: 1.3rem;
	font-weight: 300;
	margin: 0;
	opacity: 0.9;
	line-height: 1.4;
}

@keyframes fadeInUp {
	to {
		opacity: 0.9;
		transform: translateY(0);
	}
}

/* Mobile Responsive */
@media (max-width: 968px) {
	.contact-local-delivery-content {
		grid-template-columns: 1fr;
		gap: 40px;
		text-align: center;
	}
	
	.local-delivery-title-section {
		text-align: center;
		order: -1;
	}
	
	.local-delivery-title {
		font-size: 2.2rem;
	}
	
	.contact-subtitle {
		font-size: 1.1rem;
	}
}

@media (max-width: 768px) {
	.page-callout.contact-local-delivery.delivery-zones-header {
		padding: 60px 20px;
	}
	
	.contact-local-delivery-content {
		gap: 30px;
	}
	
	.contact-local-delivery-images {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	.contact-local-delivery-images img {
		max-width: 120px;
	}
	
	.local-delivery-title {
		font-size: 1.8rem;
	}
	
	.contact-subtitle {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.contact-local-delivery-images {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.contact-local-delivery-images img {
		max-width: 100px;
	}
}

/* Delivery-specific styles within support page structure */

/* Delivery Map Link */
.delivery-map-link {
	display: inline-block;
	background: #297FB9;
	color: white !important;
	padding: 12px 20px;
	text-decoration: none !important;
	border-radius: 5px;
	font-weight: 500;
	transition: background-color 0.3s ease;
	margin: 15px 0;
}

.delivery-map-link:hover {
	background: #1F425D;
	text-decoration: none !important;
	color: white !important;
}

/* ZIP Code Checker within content-section-content */
.zip-code-checker {
	background: #F7F9F8;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
	border: 1px solid #EBEEF2;
}

.zip-code-checker label {
	display: block;
	margin-bottom: 10px;
	color: #2C3D4F;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
}

.zip-input-group {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.zip-code-checker input {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	width: 200px;
	font-family: 'Roboto', sans-serif;
}

.zip-code-checker button {
	padding: 10px 20px;
	background: #297FB9;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
}

.zip-code-checker button:hover {
	background: #1F425D;
}

.zip-result:empty {
	display: none;
}

.zip-result {
	padding: 10px 15px;
	border-radius: 4px;
	font-weight: 500;
	font-family: 'Roboto', sans-serif;
	margin-top: 10px;
}

.zip-result.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.zip-result.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.zip-result.warning {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.content-section-content dd {
	margin-bottom:20px;
}

/* Route Info within content-section-content */
.route-info {
	margin-bottom: 20px;
	padding: 15px;
	background: #F7F9F8;
	border-radius: 6px;
}

.route-info dt {
	color: #2A4B65;
	margin-bottom: 8px;
	font-family: 'Montserrat', sans-serif;
}

.route-info dd.zip-codes {
	color: #2C3D4F;
	margin-bottom: 0;
	font-size: 14px;
}

.zip-list {
	font-family: 'Roboto', monospace;
	padding: 5px 8px;
	border-radius: 3px;
	margin-left: 5px;
	font-size: 13px;
}

/* Mobile responsiveness for delivery-specific elements */
@media (max-width: 768px) {
	.zip-input-group {
		flex-direction: column;
	}
	
	.zip-code-checker input {
		width: 100%;
		margin-bottom: 10px;
	}
	
	.zip-code-checker button {
		width: 100%;
	}
	
	.local-delivery-title {
		font-size: 1.8rem;
	}
} 

.page-subheader {

}

/* Zip result fade animations */
.zip-result.fading {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.zip-result.fade-complete {
	opacity: 1;
	transition: opacity 0.2s ease;
}

/* Google Maps Info Window Styles */
.info-window-content {
	padding: 12px;
	font-family: 'Montserrat', sans-serif;
}

.info-window-content.centered {
	text-align: center;
}

.info-window-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: bold;
	display:block;
}

.info-window-title.route-active {
	color: #28a745;
}

.info-window-title.route-coming-soon {
	color: #e0a800;
}

.info-window-description {
	margin: 0;
	font-size: 14px;
}

.info-window-status {
	margin: 4px 0 0 0;
	font-size: 12px;
	color: #666;
}

.zipcode-status {
	color: #28a745;
	font-weight: bold;
	font-size: 14px;
	margin-top: 8px;
	display: block;
}

.zipcode-status.not-available {
	color: #dc3545;
}

.zipcode-shipping-note {
	margin-top: 8px;
	font-size: 13px;
	color: #666;
	font-family: 'Roboto', sans-serif;
}

/* Loading Indicator Styles */
.map-loading-indicator {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	padding: 20px 30px;
	margin: 20px;
	z-index: 1000;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	border: 1px solid #EBEEF2;
}

.loading-content {
	display: flex;
	align-items: center;
	gap: 15px;
	font-family: 'Montserrat', sans-serif;
}

.loading-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #297FB9;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.loading-text {
	color: #2A4B65;
	font-size: 14px;
	font-weight: 500;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Mobile adjustments for loading indicator */
@media (max-width: 768px) {
	.map-loading-indicator {
		margin: 10px;
		padding: 15px 20px;
	}
	
	.loading-content {
		gap: 12px;
	}
	
	.loading-spinner {
		width: 20px;
		height: 20px;
		border-width: 2px;
	}
	
	.loading-text {
		font-size: 13px;
	}
}